package com.yf.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yf.domain.security.Job;
import com.yf.model.query.JobQueryCriteria;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author chentianwei
 * @date 2024-10-29 12:43
 * @description 岗位Dao层接口
 */
@Mapper
public interface JobMapper extends BaseMapper<Job> {

    @Select("select job_id as id from sys_job where name = #{name}")
    Job findByName(@Param("name") String name);

    List<Job> findAll(@Param("criteria") JobQueryCriteria criteria);
}
